package DesignPatern.A19_访问者模式.QSB.A02_抽象模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 8:11
 */
public class Visitor implements IVisitor
{
    @Override
    public void visit(ConcreteElement1 c1)
    {
        c1.doSomeThing();
    }
    
    @Override
    public void visit(ConcreteElement2 c2)
    {
        c2.doSomeThing();
    }
}
